<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/common.jsp"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<body style='overflow:scroll;overflow-x:hidden'>
	<div class="container" style="width:98%;padding:8px;">
		<div class="row">
			<div class="panel panel-default">
				<div class="panel-heading">
					<c:choose>
						<c:when test="${empty  sysTableColumn.id}">新增</c:when>
				 		<c:otherwise>修改</c:otherwise>
	  				</c:choose>
				</div>
					<div class="panel-body">
						<form class="form-horizontal" role="form" id="dailogForm" action="<%=path%>/system/sysTableColumn/doMerge.do" method="POST">
								<input type="hidden" value="${sysTableColumn.id}" name="id" />
							<div class="form-group">
						    	<label for="tableInfoId" class="col-sm-2 control-label" style="text-align:left;">表名</label>
						    	<div class="col-sm-8">
						    	 		<select name="tableInfoId" id="tableInfoId"  class="selectpicker show-tick form-control" data-live-search="true">
							 			 	 <option value="">请选择</option>
								 			 <c:if test="${not empty list}">
								 			 <c:forEach items="${list}" var="info" varStatus="vs">
										          <option value="${info.id}" <c:if test="${info.id == sysTableColumn.tableInfoId }">selected="selected"</c:if>>${info.tableName}</option>
										     </c:forEach>
										     </c:if>
								     	</select>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="columnName" class="col-sm-2 control-label" style="text-align:left;">字段名</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysTableColumn.columnName}" name="columnName" id="columnName" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="columnComment" class="col-sm-2 control-label" style="text-align:left;">字段注释</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysTableColumn.columnComment}" name="columnComment" id="columnComment" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="columnType" class="col-sm-2 control-label" style="text-align:left;">字段类型</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysTableColumn.columnType}" name="columnType" id="columnType" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="isPrimary" class="col-sm-2 control-label" style="text-align:left;">是否主键</label>
						    	<div class="col-sm-8">
						    		   <select name="isPrimary" id="isPrimary"  class="selectpicker show-tick form-control" data-live-search="true">
							 			 	 <option value="">请选择</option>
										     <option value="1" <c:if test="${1 == sysTableColumn.isPrimary }">selected="selected"</c:if>>是</option>
								      		 <option value="2" <c:if test="${2 == sysTableColumn.isPrimary }">selected="selected"</c:if>>否</option>
								      </select>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="isQuery" class="col-sm-2 control-label" style="text-align:left;">是否查询条件</label>
						    	<div class="col-sm-8">
						    		   <select name="isQuery" id="isQuery"  class="selectpicker show-tick form-control" data-live-search="true">
							 			 	 <option value="">请选择</option>
										     <option value="1" <c:if test="${1 == sysTableColumn.isQuery }">selected="selected"</c:if>>是</option>
								      		 <option value="2" <c:if test="${2 == sysTableColumn.isQuery }">selected="selected"</c:if>>否</option>
								      </select>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="isDisplay" class="col-sm-2 control-label" style="text-align:left;">是否列表展示</label>
						    	<div class="col-sm-8">
						    		  <select name="isDisplay" id="isDisplay"  class="selectpicker show-tick form-control" data-live-search="true">
							 			 	 <option value="">请选择</option>
										     <option value="1" <c:if test="${1 == sysTableColumn.isDisplay }">selected="selected"</c:if>>是</option>
								      		 <option value="2" <c:if test="${2 == sysTableColumn.isDisplay }">selected="selected"</c:if>>否</option>
								      </select>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="isAdd" class="col-sm-2 control-label" style="text-align:left;">新增是否展示</label>
						    	<div class="col-sm-8">
						    		   <select name="isAdd" id="isAdd"  class="selectpicker show-tick form-control" data-live-search="true">
							 			 	 <option value="">请选择</option>
										     <option value="1" <c:if test="${1 == sysTableColumn.isAdd }">selected="selected"</c:if>>是</option>
								      		 <option value="2" <c:if test="${2 == sysTableColumn.isAdd }">selected="selected"</c:if>>否</option>
								      </select>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="isModify" class="col-sm-2 control-label" style="text-align:left;">修改是否展示</label>
						    	<div class="col-sm-8">
						    		   <select name="isModify" id="isModify"  class="selectpicker show-tick form-control" data-live-search="true">
							 			 	 <option value="">请选择</option>
										     <option value="1" <c:if test="${1 == sysTableColumn.isModify }">selected="selected"</c:if>>是</option>
								      		 <option value="2" <c:if test="${2 == sysTableColumn.isModify }">selected="selected"</c:if>>否</option>
								      </select>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="isDetail" class="col-sm-2 control-label" style="text-align:left;">详情是否展示</label>
						    	<div class="col-sm-8">
						    		   <select name="isDetail" id="isDetail"  class="selectpicker show-tick form-control" data-live-search="true">
							 			 	 <option value="">请选择</option>
										     <option value="1" <c:if test="${1 == sysTableColumn.isDetail }">selected="selected"</c:if>>是</option>
								      		 <option value="2" <c:if test="${2 == sysTableColumn.isDetail }">selected="selected"</c:if>>否</option>
								      </select>
						    	</div>
							</div>
							<div class="form-group">
								<div class="col-sm-offset-5 col-sm-10">
									<a type="button" class="btn btn-sm btn-default" id="formReturn" href="<%=path%>/system/sysTableColumn/queryPageList.do">返回</a>
   									<button type="button" class="btn btn-sm btn-primary" id="formSubmit" onclick ="javascript:$('#dailogForm').submit();">提交</button>
								</div>
 							</div>
						</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>